#pragma once
#include "afxwin.h"
#include "DrawFrame.h"

// CVideoDlg dialog


class CVaxSIPUserAgent;

class CVideoDlg : public CPropertyPage
{
	DECLARE_DYNAMIC(CVideoDlg)

public:

	CVideoDlg(CVaxSIPUserAgent* pVaxSIPUserAgent);
	virtual ~CVideoDlg();

// Dialog Data
	enum { IDD = IDD_VIDEO_DLG };

protected:

	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

private:
	
	HWND m_hWndPreview;
	CDrawFrame m_objDrawFramePreview;
	
	
	HWND m_hWndScreen[5];
	CDrawFrame m_objScreens[5];

public:

	CFont m_objFont;

	CVaxSIPUserAgent* m_pVaxSIPUserAgent;
	BOOL m_bCheckPreview;

public:

	void OnVaxInitialize();
	void OnVaxUnInitialize();

	void OnVideoRemoteShowStart(int nLineNo);
	void OnVideoRemoteShowStop(int nLineNo);
	void OnVideoRemoteShowRGB(int nLineNo, BYTE* pFrameRGB, DWORD dwFrameSize, DWORD dwFrameWidth, DWORD dwFrameHeight);
	void OnVideoDeviceShowRGB(int nDeviceId, BYTE* pFrameRGB, DWORD dwFrameSize, DWORD dwFrameWidth, DWORD dwFrameHeight);
	
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedCheckVideoPreviewActivate();


	
};
